import request from '@/utils/request'
export function getCustomerList({ customers_name, customers_phone, designer_name, page }) {
  return request({
    url: '/api/back/customer/list',
    method: 'get',
    params: { customers_name, customers_phone, designer_name, page }
  })
}
export function addBrandItem({ id, brand_name, shop_id }) {
  return request({
    url: '/api/back/customer/list/createBrand',
    method: 'post',
    params: { id, brand_name, shop_id }
  })
}
export function getCustomerOrderList({ status, page, customers_name, customers_phone, designer_name, customers_id }) {
  return request({
    url: '/api/back/customer/order/list',
    method: 'get',
    params: { status, page, customers_name, customers_phone, designer_name, customers_id }
  })
}
export function setPass({ id, price }) {
  return request({
    url: '/api/back/customer/order/pass',
    method: 'post',
    data: { id, price }
  })
}
export function setRefuse({ id, reason }) {
  return request({
    url: '/api/back/customer/order/reject',
    method: 'post',
    data: { id, reason }
  })
}

